package se.peterbjorkman.android.trafikkamera;

import android.graphics.drawable.Drawable;

import com.google.android.maps.GeoPoint;
import com.google.android.maps.OverlayItem;

public class CameraOverlayItem extends OverlayItem {

    private final long mId;
    public CameraOverlayItem(long id, Double longitude, Double latitude, Drawable drawable) {
        super(new GeoPoint((int)(latitude * 1000000), (int)(longitude * 1000000)), "", "");
        mId = id;
        if (drawable != null)
        	CameraMapOverlay.boundCenter(drawable);
        setMarker(drawable);
    }

    public long getId(){
        return mId;
    }

}
